package cn.bdqn.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

@Data
@TableName("sys_role")
public class Role {
@TableId(type = IdType.AUTO)
    private Long roleId;
    private String roleName;
    private String roleDesc;
    private Integer roleFlag;
    @TableField(exist = false)
    private List<Right> rights=new ArrayList<>();
}
